package com.newway.exception;

public class BusinessException extends RuntimeException{

        private int code; // 自定义异常的状态码

        public BusinessException(String message) {
            super(message);
        }

        public BusinessException(int code, String message) {
            super(message);
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
}
